<div class="form">


<?php $form = $this->beginWidget('GxActiveForm', array(
	'id' => 'aman-student-college-details-form',
	'enableAjaxValidation' => true,
));
?>

	<p class="note">
		<?php echo Yii::t('app', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?>.
	</p>

	<?php echo $form->errorSummary($model); ?>

		<div class="row">
		<?php echo $form->labelEx($model,'college_name'); ?>
		<?php echo $form->textField($model, 'college_name', array('maxlength' => 45)); ?>
		<?php echo $form->error($model,'college_name'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'deemed_university'); ?>
		<?php echo $form->textField($model, 'deemed_university'); ?>
		<?php echo $form->error($model,'deemed_university'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'principal_first_name'); ?>
		<?php echo $form->textField($model, 'principal_first_name', array('maxlength' => 45)); ?>
		<?php echo $form->error($model,'principal_first_name'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'principal_last_name'); ?>
		<?php echo $form->textField($model, 'principal_last_name', array('maxlength' => 45)); ?>
		<?php echo $form->error($model,'principal_last_name'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'gender'); ?>
		<?php echo $form->textField($model, 'gender'); ?>
		<?php echo $form->error($model,'gender'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'phone_no1'); ?>
		<?php echo $form->textField($model, 'phone_no1'); ?>
		<?php echo $form->error($model,'phone_no1'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'phone_no2'); ?>
		<?php echo $form->textField($model, 'phone_no2'); ?>
		<?php echo $form->error($model,'phone_no2'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'police_station_name_and_address'); ?>
		<?php echo $form->textArea($model, 'police_station_name_and_address'); ?>
		<?php echo $form->error($model,'police_station_name_and_address'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'student_details_id'); ?>
		<?php echo $form->dropDownList($model, 'student_details_id', GxHtml::listDataEx(AmanStudentDetails::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'student_details_id'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'state_id'); ?>
		<?php echo $form->dropDownList($model, 'state_id', GxHtml::listDataEx(AmanState::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'state_id'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'college_type_id'); ?>
		<?php echo $form->dropDownList($model, 'college_type_id', GxHtml::listDataEx(AmanCollegeType::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'college_type_id'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'affiliating_university_id'); ?>
		<?php echo $form->dropDownList($model, 'affiliating_university_id', GxHtml::listDataEx(AmanAffiliatingUniversity::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'affiliating_university_id'); ?>
		</div><!-- row -->


<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->